package cores.colorwheel;

public class Triad {
	
	private Color c1, c2, c3;
	
	private Triad (Color c1, Color c2, Color c3) {
		this.c1 = c1;
		this.c2 = c2;
		this.c3 = c3;
	}
	
	/**
	 * 
	 * @return color 1
	 */
	public Color getC1() {
		return this.c1;
	}

	/**
	 * 
	 * @return color 2
	 */
	public Color getC2() {
		return this.c2;
	}
	
	/**
	 * 
	 * @return color 3
	 */
	public Color getC3() {
		return this.c3;
	}
	
	/**
	 * 
	 * @param t
	 * @return Verify if two colors are equals
	 */
	public boolean equals(Triad t) {
		if (t.getC1() == this.getC1() && t.getC2() == this.getC2() && t.getC3() == this.getC3() ||
				t.getC1() == this.getC2() && t.getC2() == this.getC3() && t.getC3() == this.getC1() ||
				t.getC1() == this.getC3() && t.getC2() == this.getC1() && t.getC3() == this.getC2()) {
			return true;
		} else {
			return false;
		}
	}		
}
